﻿@{
    ViewBag.Title = "Calendar";
}

<h2>@ViewBag.Title</h2>

<link rel="Stylesheet" type="text/css" href="@Url.Content("~/Content/Calendar.css")" />
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.7.1.js")"></script>

<div id="sidebar">
    <ul>
        <h2>Closest tasks:</h2>
        @foreach ( var user in Model ) {
    <li>@user.username
            @foreach ( var task in user.tasks ) {
                <li>@task.taskname</li>
                <li>@task.start</li>
                <li>@task.end</li>
            }
        </li>
            <hr />
}
    </ul>
    </div>

<table>
    <tr>
        <td>
            <div id='bodyCalendar'>
                <div id="CalendarNaw"></div>
                <div id="CalendarWeekDay"></div>
                <div id="CalendarDay"></div>
            </div>
        </td>
    </tr>
</table>


<script type="text/javascript" src="@Url.Content("~/Scripts/Calendar.js")"></script>